package com.beiye.drivertransport.adapter;

import android.content.Context;
import android.widget.TextView;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.beiye.drivertransport.R;
import com.beiye.drivertransport.bean.ViolationDictBean;

import java.util.List;

/**
 * Created by ky on 2018/7/6.
 */

//违章种类
public class ViolationDictApt extends CommonAdapter<ViolationDictBean.RowsBean> {
    private final List<ViolationDictBean.RowsBean> mList;
    private Context context;
    // 标记用户当前选择
    private int index = -1;


    public ViolationDictApt(Context context, List<ViolationDictBean.RowsBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
        this.context = context;
        this.mList = mList;
    }

    @Override
    public void convert(ViewHolder holder, ViolationDictBean.RowsBean item, final int position) {
        TextView tv_company = holder.getView(R.id.tv_company);
        String Dname = mList.get(position).getDname();
        tv_company.setText(Dname);

    }




}